package com.wanxi.test;

import java.util.Scanner;

public class ForString {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入字符串");
        String str = scanner.next();
//        for (int i = 0; i < str.length(); i++) {
//            System.out.println(str.charAt(i));
//        }
        char[] chars = str.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            System.out.println(chars[i]);
        }
    }
}
